package com.zk.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
import java.util.Queue;


public class TestQueue {

	public static void main(String[] args) {
		Calendar cal = Calendar.getInstance();

		cal.get(Calendar.YEAR);//年
		int i = cal.get(Calendar.MONTH);//月(必须要+1)
		int num = i+1;
		cal.get(Calendar.DATE);//日
		cal.get(Calendar.HOUR_OF_DAY);//时
		cal.get(Calendar.MINUTE);//分
		cal.get(Calendar.SECOND);//秒
		cal.get(Calendar.DAY_OF_WEEK);
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
		System.out.println(df.format(new Date()));// new Date()为获取当前系统时间

		System.out.println();
		
	}

}
